FROM php:7.2.10-fpm-alpine3.8

MAINTAINER jiuqu

COPY repositories /etc/apk/repositories
RUN apk --no-cache update && apk --no-cache upgrade && \
  apk add --no-cache nginx supervisor && \
  docker-php-ext-install opcache pdo_mysql bcmath

ADD php.ini /usr/local/etc/php

COPY nginx.conf /etc/nginx/nginx.conf
COPY nginx.vh.default.conf /etc/nginx/conf.d/default.conf
COPY supervisor.conf /etc/supervisor.conf

EXPOSE 80

CMD ["supervisord", "-c", "/etc/supervisor.conf"]
